package com.msb.common.enums;

import lombok.Getter;

/**
 * @Author: lmf
 * @Create: 2025/3/8 16:59
 * Description:
 */
@Getter
public enum ExceptionEnums {
    UNKNOWN_ERROR(0, "未知错误"),
    ERROR_APIKEY(-1, "非法的apikey"),
    IP_NOT_WHITE(-2, "请求的ip不在白名单内"),
    ERROR_SIGN(-3, "无可用签名"),
    ERROR_TEMPLATE(-4, "无可用模板"),
    ERROR_MOBILE(-5, "手机号格式不正确"),
    BALANCE_NOT_ENOUGH(-6, "手客户余额不足"),
    SNOWFLAKE_OUT_OF_RANGE(-11, "雪花算法超出范围"),
    SNOWFLAKE_TIME_BACk(-12, "雪花算法时间出现时间回拨问题"),
    ERROR_HAVE_DIRTY_WORD(-13, "包含敏感词"),

    ERROR_GLOBAL_BLACK(-14, "全局黑名单"),

    ERROR_CLIENT_BLACK(-15, "客户黑名单"),

    ERROR_LIMIT_ONE_MINUTE(-16, "一分钟内发送次数超出限制"),
    CHANNEL_ERROR(-17, "通道异常:没有可用通道"),
    SEARCH_INDEX_ERROR(-18,"搜索索引异常"),
    SEARCH_UPDATE_ERROR(-20,"修改文档信息失败！"),
    ;



    final private Integer code;
    final private String msg;

    ExceptionEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
